//
//  ListTableViewCell.m
//  Project two framework
//
//  Created by rimi on 16/7/25.
//  Copyright © 2016年 张峥. All rights reserved.
//

#import "ListTableViewCell.h"

@implementation ListTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setUpUI];
    }
    return self;
}

- (void)setUpUI
{
    _bottomImag = [[UIImageView alloc]initWithFrame:CGRectMake(0, 15, 834, 65)];
    _bottomImag.image = [UIImage imageNamed:@"line_12.png"];
    _bottomImag.userInteractionEnabled = YES;
    [self.contentView addSubview:_bottomImag];
    
    _headImage = [[UIImageView alloc]initWithFrame:CGRectMake(45, 19, 27, 27)];
    _headImage.image = [UIImage imageNamed:@"photo_20.png"];
    [self.bottomImag addSubview:_headImage];
    
    _name = [[UILabel alloc]initWithFrame:CGRectMake(72, 19, 100, 27)];
    _name.textAlignment = NSTextAlignmentCenter;
    [self.bottomImag addSubview:_name];
    
    _productID = [[UILabel alloc]initWithFrame:CGRectMake(270, 0, 360, 65)];
    [self.bottomImag addSubview:_productID];
    
    _handle = [UIButton buttonWithType:UIButtonTypeCustom];
    _handle.frame = CGRectMake(660, 10, 155, 45);
    [_handle setImage:[UIImage imageNamed:@"提交办理.png"] forState:UIControlStateNormal];
    [self.bottomImag addSubview:_handle];
}
@end
